﻿using System.ComponentModel.DataAnnotations;

namespace Book_WebAPI.Models
{
    public class AuthorUpdate
    {
        public int id { get; set; }
        public string name {  get; set; }
        public int age { get; set; }
        [EmailAddress(ErrorMessage = "邮箱格式不正确！")]
        public string email { get; set; }
    }
}
